<?php
/*
	辅助应用
*/
defined('BY_JYA') or exit('error');
$list = array(
	array('title'=>'日常工具','list'=>array(
			array('name'=>'jy_merchgame_tbdj','title'=>'填表登记','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_hdbm','title'=>'活动报名','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_yuyue','title'=>'服务预约','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_notice','title'=>'通知公告','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_vote','title'=>'投票评选','desc'=>'促销保单利器','icon'=>'',),
			array('name'=>'jy_merchgame_wen','title'=>'问卷调查','desc'=>'促销保单利器','icon'=>'',),
	)),
);
foreach($list as &$type){
	foreach($type['list'] as &$p){
		$install = check_permission($p['name']);
		if($install){
			$p['is_install'] = 1;
			$p['is_show'] = 1;
		}else{
			$p['is_install'] = 0;
			$p['is_show'] = 0;
			if($_SESSION['isfounder']){
				$p['is_show'] = 1;
			}
		}
		
	}
}
return  $list;